package cw.spring.security.acl.poc.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 * Used to store the last run of stardust feeding tools (MACAO, Markit...)
 * 
 * @author montagnoncy
 * 
 */
@Entity
@Table(name = "Acl_Class")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class AclClassModel {

  private long id;

  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }

  private String className;

  @Column(name = "class")
  public String getClassName() {
    return className;
  }

  public void setClassName(String className) {
    this.className = className;
  }

}
